Enabling Server-Side Includes

The Web server must detect that a file contains server-side include commands before processing the file. By default, the Web server is set up to process files with the .stm, .shtm, or .shtml file name extensions. You can disable the processing of server-side include directives for the entire Web server, for a Web site, for an application, or for an individual directory.

To enable server-side includes
  1. Give files that contain SSI directives an SSI file name extension (.stm, .shtm, or .shtml).
  2. You can add additional extensions; see Setting Application Mappings.

  3. Put SSI files into a directory with Scripts or Execute access permissions. For more information, see Setting NTFS Permissions for a Directory or File.

 

To disable server-side includes
  1. In the Internet Information Services snap-in, select a Web site or directory, open its property sheets, and then click the Home Directory or Directory tab. To disable SSI for an application, select the application starting point directory.
  2. Click the Configuration button, and then click the App Mappings tab.
  3. Select the extension, and then click the Remove button. When the Web server receives a request for a page with this file name extension, it will not process server-side include directives within the page.

© 1997-1999 Microsoft Corporation. All rights reserved.